#ifndef _FLOW_H
#define _FLOW_H

#include "net.h"

void init_flow_state(p_main_flow mflow);
uint16_t init_main_flow(p_main_flow mflow);

uint16_t send_msg(p_socket_io sock, char* buf, uint16_t* size);
uint16_t recv_msg(p_socket_io sock, char* buf, uint16_t* size);

void main_loop();


#endif
